import store from '@/store'

export default {
  methods: {
    checkPermission(key) {
      const { roles: { points }} = store.state.user.userInfo
      if (points?.length) {
        return points.some(item => item === key)
      }
      console.log(points)
      return false
    }
  }
}
